@extends('common')
@section('content')

<style type="text/css">
#ta tr{height:50px;font-size:20px;}

</style>
<div width='520px'  style="margin-left:30%" >

<p>
<input type="button" class='info' style='width:170px;height:40px;font-size:18px;Background-color:#1b3160;color:#ffffff' value="企业信息" >
<input class='base' type="button" style='width:170px;height:40px;font-size:18px color:#e8e9ee' value="基础信息" >
<input class='apt' type="button" style='width:170px;height:40px;font-size:18px color:#e8e9ee' value="企业资质" >
</p>
<div id='info'>
<table id="ta">
<tr>
	<td>公司名称:</td>
	<td>{{$arr->com_name}}</td>
</tr>
<tr>
	<td>企业LOGO:</td>
	<td><img src="{{url($arr->com_logo)}}" alt="" width=150 height=150 /></td>
</tr>
<tr>
	<td>联系人:</td>
	<td>{{$arr->com_contact}}</td>
</tr>
<tr>
	<td>联系电话:</td>
	<td>{{$arr->com_phone}}</td>
</tr>
<tr>
	<td>传真:</td>
	<td>{{$arr->com_fax}}</td>
</tr>
<tr>
	<td>企业简介:</td>
	<td></td>
</tr>
<tr>
	<td></td>
	<td style='width:300px'>{{$arr->com_introduce}}</td>
</tr>
</table>


</div>
<div id='base'  >
<p style='width:300px'>{{$arr->com_basicnews}}</p>



</div>
<div id='apt'>
<?php 
$com_show=json_decode($arr->com_show);
$com_apt=json_decode($arr->com_apt);

?>
<h4>公司资质</h4>
<table>
<tr>
	<td>
	@foreach($com_apt as $v)
	<img src="{{url($v)}}" alt="" width=200;height=200px />
	@endforeach
	</td>
	
</tr>
<tr>
	
	
</tr>
</table> <hr />
<h4>公司展示</h4>
<table>
<tr>
	<td>
	@foreach($com_show as $vv)
	<img src="{{url($vv)}}" alt="" width=200;height=200px />
	@endforeach
	</td>
</tr>
<tr>
	
	
</tr>
</table>






</div>
<p style="margin-top:30px"><a href="/manager/comedit"><input id='button' class='apt' type="submit" style='width:100px;height:40px;font-size:18px color:#e8e9ee' value="编辑" ></a></p>
</form>
</div>

<script type="text/javascript">
$(function(){
$('#base').hide();
$('#apt').hide()

$('.base').click(function(){
$('#base').show();
$('#info').hide();
$('#apt').hide();

$(this).attr('style','width:170px;height:40px;font-size:18px;Background-color:#1b3160;color:#ffffff');
$('.info').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
$('.apt').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
})

$('.apt').click(function(){
$('#base').hide();
$('#info').hide();
$('#apt').show();
$(this).attr('style','width:170px;height:40px;font-size:18px;Background-color:#1b3160;color:#ffffff');
$('.base').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
$('.info').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
})

$('.info').click(function(){
$('#base').hide();
$('#info').show();
$('#apt').hide();

$(this).attr('style','width:170px;height:40px;font-size:18px;Background-color:#1b3160;color:#ffffff');
$('.base').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
$('.apt').attr('style','width:170px;height:40px;font-size:18px color:#e8e9ee')
})


})



</script>



@stop
